<?php


namespace App\service;



use function Symfony\Component\Translation\t;

class AuthLogin
{
    public static function userLogin($code){
        $url = sprintf(config('wechat.login'),config('wechat.appId'),config('wechat.secret'),$code);
        $res = file_get_contents($url,true);
        $data = json_decode($res,true);
        return $data;
    }
}
